package bingo.component.amchart.graphics;

import org.dom4j.Node;

/**
 * Jun 24, 2008 4:23:30 PM
 * Author:yangdongyu(yangdy@bingosoft.net)
 * ReadMe:
 * ChangeLog:
 */
public interface Graphic {
	/**
	 * 获取图表的类型,包括饼图(pie)/柱状图(bar)/折线图(line)
	 * @return
	 */
	GraphicType getGraphicType();
	
	boolean isRootElement();
	/**
	 * 将该对象转换成xml
	 * @return
	 */
	Node toXML();
	/**
	 * ReadMe:图表的类型,包括饼图(pie)/柱状图(bar)/折线图(line)
	 * ChangeLog:
	 */
	public enum GraphicType{
		pie,line,bar,slice,value,series,graphs,graph,city,dept,guides,guide
	}
	
}
